const Layout = () => import('../views/layout/Layout.vue')
// 定义用户相关的路由映射
export const podRoutes = {
        path: "/pod",
        component: Layout,
        redirect: "/pod/list",
        children: [
            {
                path: "list",
                component: () => import('../views/pod/List.vue')
            },
        ]
}

export const deploymentRoutes = {
        path: "/deployment",
        component: Layout,
        redirect: "/deployment/list",
        children: [
            {
                path: 'list',
                component: () => import('../views/deployment/List.vue')
            },
            {
                path: 'create',
                component: () => import('../views/deployment/Create.vue')
            },
            {
                path: 'edit',
                component: () => import('../views/deployment/Edit.vue')
            },
        ]
}
export const statefulsetRoutes = {
        path: "/statefulset",
        component: Layout,
        redirect: "/statefulset/list",
        children: [
            {
                path: 'list',
                component: ()=> import('../views/statefulset/List.vue')
            },
            {
                path: 'create',
                component: ()=> import('../views/statefulset/Create.vue')
            },
            {
                path: 'edit',
                component: ()=> import('../views/statefulset/Edit.vue')
            }
        ]
}
export const daemonsetRoutes = {
        path: "/daemonset",
        component: Layout,
        redirect: "/daemonset/list",
        children: [
            {
                path: 'list',
                component: ()=> import('../views/daemonset/List.vue')
            },
            {
                path: 'create',
                component: ()=> import('../views/daemonset/Create.vue')
            },
            {
                path: 'edit',
                component: ()=> import('../views/daemonset/Edit.vue')
            }
        ]
}
export const cronjobRoutes = {
        path: "/cronjob",
        component: Layout,
        redirect: "/cronjob/list",
        children: [
            {
                path: 'list',
                component: ()=> import('../views/cronjob/List.vue')
            },
            {
                path: 'create',
                component: ()=> import('../views/cronjob/Create.vue')
            },
            {
                path: 'edit',
                component: ()=> import('../views/cronjob/Edit.vue')
            }
        ]
}